home *** CD-ROM | disk | FTP | other *** search
- Path: rcp6.elan.af.mil!rscernix!danpop
- From: danpop@mail.cern.ch (Dan Pop)
- Newsgroups: comp.lang.c
- Subject: Re: How do you reset the computer using C on a PC ?
- Date: 21 Mar 96 01:35:41 GMT
- Organization: CERN European Lab for Particle Physics
- Message-ID: <danpop.827372141@rscernix>
- References: <31473FD4.48AA@ccis.com> <Pine.A32.3.91.960313183048.180818A-100000@red.weeg.uiowa.edu> <Pine.SOL.3.91.960320214653.20493A-100000@cmu>
- NNTP-Posting-Host: ues5.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
-
- In <Pine.SOL.3.91.960320214653.20493A-100000@cmu> Verasak Sahachaisaree <scchi004@cmu> writes:
-
-
- >
- >/* Try this */
- >int main(void)
- >{
- > void interrupt (* old)();
- > old=0xFFFF0000;
-
- If your compiler silently accepts this assignment, it's hopelessly broken.
- No matter what your compiler does, your code _is_ broken: integers and
- pointers aren't compatible types.
-
- > (* old)();
-
- Why not simply "old();" ?
-
- >}
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-